<template>
	<view class="mainpadding">
		<view class="flexcenter titletext bold">{{dataAll.name}}</view>
		<template v-if="dataAll.sx_type==1">
			<video class="video margin_top" :src="dataAll.file_text"></video>
		</template>
		<template v-if="dataAll.sx_type==2">
			<view class="margin_top">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
		</template>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid: "",
				dataAll:{}
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.init()
		},
		methods: {
			init() {
				httpRequest.request('/api/index/fljtDetail', 'GET', {
					id:this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.video {
		width: 100%;
		height: 310rpx;
	}
</style>